package cn.edu.cdut.controller;

import cn.edu.cdut.dto.MyRes;
import cn.edu.cdut.service.WishCountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Author  kobe
 * Created on 2017-06-21-0:47
 */
@RestController
public class WishCountController {
        @Autowired
        private WishCountService wishCountService;

        @GetMapping("/getWishCountData")
        public MyRes getWishCountData() {
                return wishCountService.getWishCountData();
        }

        @GetMapping("/getUnwishData")
        public MyRes getUnwishData() {
                return wishCountService.getUnwishData();
        }
}
